package ${servicePackageName}.entity.sys;

import java.time.LocalDateTime;

import ${commonPackageName}.entity.base.CommonIdEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 请求日志记录表
 * </p>
 *
 * @author lizihao
 * @since 2020-11-26
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value="SysRequestLog对象", description="请求日志记录表")
public class SysRequestLog extends CommonIdEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "请求路径")
    private String requestUrl;

    @ApiModelProperty(value = "注解描述")
    private String requestDescription;

    @ApiModelProperty(value = "请求类型")
    private String requestMethod;

    @ApiModelProperty(value = "请求方法路径")
    private String classMethod;

    @ApiModelProperty(value = "请求ip")
    private String requestIp;

    @ApiModelProperty(value = "请求参数")
    private String requestArgs;

    @ApiModelProperty(value = "请求返回")
    private String requestResult;
    
    @ApiModelProperty(value = "请求耗时")
    private String timeConsuming;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
